home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Games / MAME / src / machine / 74123.h < prev    next >
C/C++ Source or Header  |  2000-02-19  |  2KB  |  65 lines

  1. /*****************************************************************************
  2.  
  3.   74123 monoflop emulator - there are 2 monoflops per chips
  4.  
  5.   74123 pins and assigned interface variables/functions
  6.  
  7.     TTL74123_trigger_comp_w    [ 1] /1TR           VCC [16]
  8.     TTL74123_trigger_w        [ 2]  1TR        1RCext [15]
  9.       TTL74123_reset_comp_w    [ 3] /1RST         1Cext [14]
  10.     TTL74123_output_comp_r    [ 4] /1Q            1Q [13] TTL74123_output_r
  11.     TTL74123_output_r        [ 5]  2Q           /2Q [12] TTL74123_output_comp_r
  12.                              [ 6]  2Cext         /2RST [11] TTL74123_reset_comp_w
  13.                              [ 7]  2RCext       2TR [10] TTL74123_trigger_w
  14.                                [ 8]  GND          /2TR [9]  TTL74123_trigger_comp_w
  15.  
  16.     All resistor values in Ohms.
  17.     All capacitor values in Farads.
  18.  
  19.      Truth table:
  20.     R    A    B | Q  /Q
  21.     ----------|-------
  22.     L    X    X | L    H
  23.     X    H    X | L    H
  24.     X    X    L | L    H
  25.     H    L  _- |_-_ -_-
  26.     H  -_    H |_-_ -_-
  27.     _-    L    H |_-_ -_-
  28.     ------------------
  29.     A    = trigger_comp
  30.     B    = trigger
  31.     R    = reset_comp
  32.     L    = lo (0)
  33.     H    = hi (1)
  34.     X    = any state
  35.     _-    = raising edge
  36.     -_    = falling edge
  37.     _-_ = positive pulse
  38.     -_- = negative pulse
  39.  
  40. *****************************************************************************/
  41.  
  42. #ifndef TTL74123_H
  43. #define TTL74123_H
  44.  
  45. #define MAX_TTL74123 4
  46.  
  47. /* The interface structure */
  48. struct TTL74123_interface {
  49.     double res;
  50.     double cap;
  51.     void (*output_changed_cb)(void);
  52. };
  53.  
  54.  
  55. void TTL74123_unconfig(void);
  56. void TTL74123_config(int which, const struct TTL74123_interface *intf);
  57.  
  58. void TTL74123_trigger_w(int which, int data);
  59. void TTL74123_trigger_comp_w(int which, int data);
  60. void TTL74123_reset_comp_w(int which, int data);
  61. int  TTL74123_output_r(int which);
  62. int  TTL74123_output_comp_r(int which);
  63.  
  64. #endif
  65.